package com.example.demo.controller;


import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/sayHi/mvc")
    public String sayHi(){
        return "你好 Spring MVC";
    }
    @PostMapping("sayhello")
    public String sayHi2(){
        return "你好，世界";
    }
}
